unit frmDebug;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ComCtrls, ExtCtrls;

type
  TformDebug = class(TForm)
    pageDevConsole: TPageControl;
    tabConsole: TTabSheet;
    rchConsole: TRichEdit;
    tabAdditional: TTabSheet;
    tabOptions: TTabSheet;
    chkShowDebugMessages: TCheckBox;
    chkShowWarningMessages: TCheckBox;
    chkShowCriticalMessages: TCheckBox;
    chkSaveLog: TCheckBox;
    Panel1: TPanel;
    btRefresh: TButton;
    procedure FormCreate(Sender: TObject);
    procedure btRefreshClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  formDebug: TformDebug;

implementation

{$R *.dfm}

uses ucDebug;

procedure TformDebug.btRefreshClick(Sender: TObject);
begin
  DevConsole.ExportMessages(rchConsole);
  rchConsole.Refresh;
end;

procedure TformDebug.FormCreate(Sender: TObject);
begin
  DevConsole := TDebugConsole.Create('');
  DevConsole.setLogLevel('1 2 3 4 5 7');
end;

end.
